<nz-affix>
  <nz-header>
    <div class="logo"><h1>工商管理学院学生信息系统</h1></div>
    <div style="float: right; color: white" routerLink="/welcome">注销</div>
    <div style="float: right; color: white; margin-right: 10px">用户名： {{Student.name}}</div>
  </nz-header>
</nz-affix>
<nz-layout>
  <nz-sider nzTheme="light" nzCollapsible [(nzCollapsed)]="isCollapsed" [nzTrigger]="null">
    <ul nz-menu nzTheme="light" nzMode="inline">
      <li nz-menu-item>
        <i nz-icon nzType="file"></i>
        <span routerLink="./">首页</span>
      </li>
      <li nz-submenu nzTitle="学生" nzIcon="user">
        <ul>
          <li nz-menu-item routerLink="./student">学生基本信息</li>
          <li nz-menu-item routerLink="./SnoSearch">学生信息查询</li>
          <li nz-menu-item routerLink="./SnoGrade">学生成绩查询</li>
        </ul>
      </li>
      <li nz-submenu nzTitle="课程信息" nzIcon="team">
        <ul>
          <li nz-menu-item routerLink="./courseInfo">课程基本信息</li>
          <li nz-menu-item routerLink="./searchCourse">课程信息查询</li>
          <li nz-menu-item routerLink="./courseSelect">学生选课信息</li>
          <li nz-menu-item routerLink="./grade">专业选课查询</li>
          <li nz-menu-item routerLink="./coursegpa">课程绩点</li>
          <li nz-menu-item routerLink="./CourseStudent" >选课学生查询</li>
        </ul>
      </li>
      <li nz-submenu nzTitle="信息看板" nzIcon="tag">
        <ul>
          <li nz-menu-item routerLink="./hometown">籍贯信息</li>
          <li nz-menu-item routerLink="./ageTable">信息统计</li>
          <li nz-menu-item routerLink="./gpa">专业绩点统计</li>
          <li nz-menu-item routerLink="./panel">总体信息看板</li>
        </ul>
      </li>
    </ul>
  </nz-sider>
  <nz-layout class="right">
    <div class="header2">
      <i class="trigger" nz-icon [nzType]="isCollapsed ? 'menu-unfold' : 'menu-fold'" (click)="isCollapsed = !isCollapsed"></i>
      <i class="trigger2" nz-icon [nzType]="'double-left'" [nzTheme]="'outline'" (click)="goBack()"></i>
    </div>
    <nz-content class="inner-content">
      <router-outlet></router-outlet>
    </nz-content>
  </nz-layout>
</nz-layout>
